package benny_driving_ser.dao;

import java.sql.Connection;

/**
 * 常用数据库操作
 * 
 * @author wll
 * 
 */
public interface UtilDao {
	/**
	 * 添加司机消费记录
	 * 
	 * @param con
	 * @param driid
	 * @param cost
	 * @param project
	 * @param formid
	 * @return
	 * @throws Exception
	 */
	boolean insertDriExpenseCalendar(Connection con, int driid, double cost,
			int project, int formid, String driJogNum) throws Exception;

	/**
	 * 添加用户消费记录
	 * 
	 * @param con
	 * @param userid
	 * @param cost
	 * @param project
	 * @param formid
	 * @return
	 * @throws Exception
	 */
	boolean insertUserExpenseCalendar(Connection con, int userid, double cost,
			int project, int formid) throws Exception;
}
